Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show expanded columns in gray in SQL Editor #7627

Merged
merged 5 commits into from
May 31, 2019
Merged

Conversation

betodealmeida
Copy link
Member

@betodealmeida betodealmeida commented May 30, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

In SQL Editor, if the payload has data from expanded columns (from nested types), show the headers as grayed out, since they are not actual columns.

This PR complements #7625.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2019-05-30 at 3 13 44 PM

TEST PLAN

I mocked the payload, creating two expanded columns with suffixes a and b, and data 0 and 1. See screenshot above.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@khtruong

@betodealmeida betodealmeida added enhancement:request Enhancement request submitted by anyone from the community .css sqllab Namespace | Anything related to the SQL Lab lyft Related to Lyft labels May 30, 2019
@@ -207,6 +207,9 @@ export default class ResultSet extends React.PureComponent {
data = results.data;
}
if (data && data.length > 0) {
const expandendColumns = results.expanded_columns
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: expandedColumns instead of expandendColumns

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will fix! At least the typos are consistent! :-P

@codecov-io
Copy link

Codecov Report

Merging #7627 into master will decrease coverage by <.01%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7627      +/-   ##
==========================================
- Coverage   65.37%   65.37%   -0.01%     
==========================================
  Files         435      435              
  Lines       21513    21519       +6     
  Branches     2378     2384       +6     
==========================================
+ Hits        14064    14067       +3     
- Misses       7329     7331       +2     
- Partials      120      121       +1
Impacted Files Coverage Δ
...src/components/FilterableTable/FilterableTable.jsx 89.13% <33.33%> (-1.89%) ⬇️
...uperset/assets/src/SqlLab/components/ResultSet.jsx 79.54% <66.66%> (-0.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbdb6b0...bb70893. Read the comment docs.

@codecov-io
Copy link

codecov-io commented May 30, 2019

Codecov Report

Merging #7627 into master will decrease coverage by <.01%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7627      +/-   ##
==========================================
- Coverage   65.37%   65.37%   -0.01%     
==========================================
  Files         435      435              
  Lines       21513    21519       +6     
  Branches     2378     2384       +6     
==========================================
+ Hits        14064    14067       +3     
- Misses       7329     7331       +2     
- Partials      120      121       +1
Impacted Files Coverage Δ
...src/components/FilterableTable/FilterableTable.jsx 89.13% <33.33%> (-1.89%) ⬇️
...uperset/assets/src/SqlLab/components/ResultSet.jsx 79.54% <66.66%> (-0.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbdb6b0...c439fad. Read the comment docs.

@betodealmeida betodealmeida merged commit d408e30 into apache:master May 31, 2019
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels enhancement:request Enhancement request submitted by anyone from the community lyft Related to Lyft size/S sqllab Namespace | Anything related to the SQL Lab 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants